package com.mrdeer.user.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 13:29
 */
@Data
@TableName("account_role")
public class AccountRole implements Serializable {
    private static final long serialVersionUID = -6806407248464666203L;
    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.ID_WORKER)
    private Long id;
    /**
     * 用户名
     */
    @TableField("USERNAME")
    private String username;
    /**
     * 角色编码
     */
    @TableField("ROLE_CODE")
    private String roleCode;
    /**
     * 租户ID
     */
    @TableField("TENANT_ID")
    private Long tenantId;
}
